package stm.liyiruo.sign2pdf.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author liyiruo
 * @Description
 * @Date 2021/8/13 上午11:00
 */
@ConfigurationProperties(prefix = "signpdf")
public class PDFConfig {
    /**
     * pdfBase64编码后的字符串
     */
    private String pdfBase64;
    /**
     * 签名图片Base64编码后的字符串
     */
    private String signImgBase64;
    /**
     * 签名放在pdf的位置 X
     */
    private float absoluteX;
    /**
     * 签名放在pdf的位置 Y
     */
    private float absoluteY;
    /**
     * 签名图片展示在pdf上时的长度
     */
    private float newWidth;
    /**
     * 签名图片展示在pdf上时的宽度
     */
    private float newHeight;
    /**
     * 签名写在pdf的第几页
     */
    private int pageNum;

    public String getPdfBase64() {
        return pdfBase64;
    }

    public void setPdfBase64(String pdfBase64) {
        this.pdfBase64 = pdfBase64;
    }

    public String getSignImgBase64() {
        return signImgBase64;
    }

    public void setSignImgBase64(String signImgBase64) {
        this.signImgBase64 = signImgBase64;
    }

    public float getAbsoluteX() {
        return absoluteX;
    }

    public void setAbsoluteX(float absoluteX) {
        this.absoluteX = absoluteX;
    }

    public float getAbsoluteY() {
        return absoluteY;
    }

    public void setAbsoluteY(float absoluteY) {
        this.absoluteY = absoluteY;
    }

    public float getNewWidth() {
        return newWidth;
    }

    public void setNewWidth(float newWidth) {
        this.newWidth = newWidth;
    }

    public float getNewHeight() {
        return newHeight;
    }

    public void setNewHeight(float newHeight) {
        this.newHeight = newHeight;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public String toString() {
        return "PDFConfig{" +
                "pdfBase64='" + pdfBase64 + '\'' +
                ", signImgBase64='" + signImgBase64 + '\'' +
                ", absoluteX=" + absoluteX +
                ", absoluteY=" + absoluteY +
                ", newWidth=" + newWidth +
                ", newHeight=" + newHeight +
                ", pageNum=" + pageNum +
                '}';
    }
}
